﻿<%@ Page Language="C#" MasterPageFile="~/GUIMaster.Master" AutoEventWireup="true" CodeBehind="FullTextSearch.aspx.cs" Inherits="GUI.FullTextSearch" Title="Triploa" meta:resourcekey="Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="FullTextSearch/fullTextSearch.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHomePage" runat="server">


<h1><asp:Literal ID="searchTitle" Text="" runat="Server" /></h1>

<asp:UpdatePanel runat="server">
<ContentTemplate>

<div id="fullTextSearchBody">


    <div id="fullTextSearchHeader">
        <div id="searchSuggestion" class="searchSuggestion" runat="server" >
            <asp:Literal ID="Literal1" Text="<%$ Resources:searchSuggestion %> " runat="Server" />
            <asp:LinkButton ID="searchSuggestionLink" runat="server" onclick="searchSuggestionLink_Click">LinkButton</asp:LinkButton>
            <asp:Literal ID="Literal2" Text=" ?" runat="Server" />
        </div> 
               
        <div id="resultsPerPage" class="resultsPerPage" runat="server" >
            <asp:Literal Text="<%$ Resources:selectResultsPerPage %>" runat="Server" />
            <asp:LinkButton ID="resultsPerPageOption1" runat="server" onclick="resultsPerPageOption1_Click" Enabled="False">20</asp:LinkButton>
            <asp:LinkButton ID="resultsPerPageOption2" runat="server" onclick="resultsPerPageOption2_Click">50</asp:LinkButton>
            <asp:LinkButton ID="resultsPerPageOption3" runat="server" onclick="resultsPerPageOption3_Click">100</asp:LinkButton>
        </div>
    </div>
    
    
    <div id="searchResultsContainer" runat="server" class="searchResultsContainer">
    
        <p runat="server" id="noResultsParagraph" ><asp:Literal Text="<%$ Resources:noResults %>" runat="Server" /></p>
        
        
        <asp:ListView ID="listViewResults" runat="server" >
            <LayoutTemplate>
                <asp:Placeholder id="itemPlaceholder" runat="server" />
            </LayoutTemplate>
            
            <ItemTemplate>
                <p>
                    <h2><a href=" <%# Eval("Link.AbsoluteUri")%> " > <%# Eval("PageTitle") %> </a></h2>
                    <span> <%# Eval("Snippet")%> </span>
                </p>
            </ItemTemplate>
            
        </asp:ListView>
        
    </div>
    
    
    <div id="dataPagerContainer" runat="server" class="dataPagerContainer" >
    
        <asp:DataPager id="listViewResultsPag" runat="server" PagedControlID="listViewResults">
            <Fields>
                <asp:NextPreviousPagerField
                    ShowFirstPageButton="false"
                    ShowPreviousPageButton="true"
                    ShowNextPageButton="false"
                    ShowLastPageButton="false" PreviousPageText="<" NextPageText=">" />
                <asp:NumericPagerField />
                <asp:NextPreviousPagerField
                    ShowFirstPageButton="false"
                    ShowPreviousPageButton="false"
                    ShowNextPageButton="true"
                    ShowLastPageButton="false" NextPageText=">" PreviousPageText="<" />
            </Fields>
        </asp:DataPager>
        
    </div>
    
     
</div>

</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
